<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="<@jspEl 'pageContext.request.contextPath'/>"/>

<#assign className = table.className>   
<#assign classNameFirstLower = className?uncap_first> 
<#assign classNameLowerCase = className?lower_case> 

<html>
<head>
<title>${classNameFirstLower} list</title>
</head>
<body>
<div class="wall">
<a class="btn btn-primary" href="<@jspEl 'ctx'/>/gtd/${classNameLowerCase}/new"><i class="icon-plus icon-white"></i>增加</a>

 
</div>
<table class="table bordered-table">
	<caption>${classNameFirstLower}s</caption>
	<thead>
	<tr>
	<#list table.columns as column>
	<td >${column.columnNameFirstLower}</td>
	</#list>

	 
	<td>操作</td>
	</tr>
	</thead>
	<tbody>

<c:forEach var="${classNameFirstLower}" items="<@jspEl classNameFirstLower + 'List'/>">
<tr>
<#list table.columns as column>
	<td><@jspEl classNameFirstLower+'.'+column.columnNameFirstLower/></td>
</#list>
<td>
<a href="<@jspEl 'ctx'/>/gtd/${classNameLowerCase}/show/<@jspEl classNameFirstLower+'.id'/>"><i class="icon-edit"></i>编辑</a>
<a href="<@jspEl 'ctx'/>/gtd/${classNameLowerCase}/delete/<@jspEl classNameFirstLower+'.id'/>"><i class="icon-remove"></i>删除</a>
</td>
</tr>
	
	
	</c:forEach>
		
	</tbody>
</table>
</body>
</html>